import siderWrapper from 'components/SiderWrapper';
import pageWrapper from 'components/PageWrapper';
import Monitor from 'components/monitor/Monitor';
import MonitorList from 'components/monitor/MonitorList';
import Message from '../message/Message';

export default function Manage({ match }) {
  const items = [{
    path: `${match.url}/monitor`,
    iconType: 'monitor',
    text: '流程监控',
  }];
  const ManageSider = siderWrapper(items);
  const routes = [{
    path: `${match.url}/monitor`,
    component: MonitorList,
  },
  {
    path: `${match.url}/monitor/detail`,
    component: Monitor,
  }, {
    path: `${match.url}/message`,
    component: Message,
  },
  ];
  return pageWrapper(ManageSider, routes);
}
